/*
 * @Author: 张家亮 1690608011@qq.com
 * @Date: 2022-08-17 17:30:22
 * @LastEditors: 张家亮 1690608011@qq.com
 * @LastEditTime: 2022-08-20 11:01:37
 * @FilePath: \vue-store-server\app\models\dao\resourcesDao.js
 * @Description: 资源模块数据持久层
 * 
 * Copyright (c) 2022 by 张家亮 1690608011@qq.com, All Rights Reserved. 
 */
const db = require('./db.js');

module.exports = {
  // 连接数据库获取轮播图数据
  Carousel: async () => {
    const sql = 'select * from carousel';
    return await db.query(sql, []);
  }
}